/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package core;

import javax.ejb.Stateless;

/**
 *
 * @author Alexey Chirkov
 */
@Stateless
public class MyBean {
    public String getResult(String sourceString, int count){
        if (count == 0) {
            return "";
        } else {
            StringBuilder sb = new StringBuilder();
            for (int i = 0; i < count; i++) {
                sb.append(sourceString);
            }
            return sb.toString();
        }
    }
    
}
